/*********** <hping@xh.vc> **************/
.icon-chage {
  position: relative;
  z-index: 100;
  span {
    display: block;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    i {
      width: 3rem;
      height: 3rem;
      position: absolute;
      left: 50%;
      top: 40%;
      margin: -1.5rem 0 0 -1.5rem;
      -webkit-filter: grayscale(100%);
      background-color: #fff;

      &:after {
        width: 1.4rem;
        height: 1.4rem;
        position: absolute;
        content: "";
        left: 50%;
        top: 50%;
        margin: -.7rem 0 0 -.7rem;
        background-image: url("img/icon-chage.png");
        background-repeat: no-repeat;
        background-size: 4rem;
        background-position: -2rem 0;
      }
    }
  }
}

.passenger_box.list-block {
  .card {
    margin: 0;
  }
  .item-text {
    height: auto;
  }
  .opt_button {
    padding: .5rem 1rem .5rem .5rem;
  }
}

//banner Begin
.swipe {
  img {
    width: 100%;
  }
}

.banner {
  position: relative;
  overflow: hidden;
}

.tab-wrap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: -.4rem;
  height: @bar-base-height;
  line-height: @bar-base-height;
  background-color: rgba(255, 255, 255, .5);
  .row {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    .col-50 {
      margin: 0;
      width: 50%;
    }
  }
}

// 倾斜
.skew {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  -webkit-transition: left 0.2s;
  transition: left 0.2s;
  &:before {
    content: '';
    position: absolute;
    left: 8%;
    display: block;
    width: 1rem;
    height: 2rem;
    border-top-left-radius: .4rem;
    background-color: #FFF;
  }
  &:after {
    position: absolute;
    left: 10%;
    content: '';
    display: block;
    margin: auto;
    width: 40%;
    height: @bar-base-height;
    border-radius: .4rem;
    background-color: #FFF;

    -webkit-transform: skew(10deg, 0);
    transform: skew(10deg, 0);
  }
}

.skew.active {
  left: 45%;
}

//banner END

//content-wrap
.content-wrap {
  padding: 0 .75rem;
  background-color: #FFF;
  li {
    .flexbox();
    .justify-content(space-between);
    .align-self(center);
    .align-items(center);

    position: relative;
    //padding-left: .75rem;
    //padding-right: .75rem;
  }
  .content-wrap-text {
    padding-top: .6rem;
    color: @color-text-gray;
    font-size: .75rem;
  }
  .content-wrap-cell {
    padding-top: .6rem;
    padding-bottom: .6rem;
    border-bottom: @border-default;
    &:last-child {
      border-bottom: 0;
    }
  }

  .from,
  .to {
    position: relative;
    width: 45%;
    font-weight: bold;

    -webkit-transition: all .5s ease-out;
    transition: all .5s ease-out;
  }

  .to {
    text-align: right;
  }

  .from.exchange {
    -webkit-transform: translate3d(-123.5%, 0, 0);
    transform: translate3d(-123.5%, 0, 0);
    text-align: left;
  }

  .to.exchange {
    -webkit-transform: translate3d(123.5%, 0, 0);
    transform: translate3d(123.5%, 0, 0);
    text-align: right;
  }
}

.input-date {
  //display: block;
  //width: 100%;
  /*    height: 2.2rem;
      line-height: 2.2rem;*/
  border: 0;
  background: 0;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.icon_right {
  padding-left: .5rem;
  &:after {
    width: .4rem;
    height: .4rem;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    content: "";
    right: .4rem;
    top: 50%;
    margin-top: -.25rem;
  }
}

/*input, button, select, textarea {
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}*/

//label-box
.label-box {
  input {
    outline: none;
    -webkit-appearance: none;

    position: relative;
    top: .2rem;
    width: 1rem;
    height: 1rem;
    border-radius: .2rem;
    border: @border-default;

    &:checked:before {
      font-family: "weui";
      font-style: normal;
      font-weight: normal;
      speak: none;

      display: inline-block;
      vertical-align: middle;
      text-decoration: inherit;
      width: 1em;
      margin-right: .2em;
      text-align: center;
      /* opacity: .8; */

      /* For safety - reset parent styles, that can break glyph codes*/
      font-variant: normal;
      text-transform: none;

      /* fix buttons height, for twitter bootstrap */
      line-height: 1em;

      /* Animation center compensation - margins should be symmetric */
      /* remove if not needed */
      margin-left: .2em;

      /* you can be more comfortable with increased icons size */
      /* font-size: 120%; */

      /* Uncomment for 3D effect */
      /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */

      content: "\EA08";
      color: @color-danger;

      position: absolute;
      //top: .1rem;
      left: -.1rem;
    }
  }

}

.head-tab-item {
  .flexbox();
  .justify-content(space-between);
  .align-self(center);
  .align-items(center);

  position: absolute;
  top: @bar-base-height * 0.9;
  right: 0;
  left: 0;
  padding: @bar-base-height * 0.1 .75rem 0 .75rem;
  width: 100%;
  font-size: .75rem;
  z-index: 100;

  &.head-train-list {
    height: 1.75rem;
  }

  &.thame-danger {
    background-color: @color-danger;
    color: #FFF;
  }
  .input-date {
    position: relative;
    left: 12%;
  }
  .tab-item-link {
    position: relative;
    color: inherit;
    .pa-input {
      opacity: 0;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 10;
    }
  }
  .tab-item-link {
    .active {
      opacity: .6;
    }
  }
}

.head-tab-item ~ .content .pull-to-refresh-layer {
  top: 1.75rem;
}

.trainBlockH {
  height: 5rem;
}

.trainBlockM {
  margin-top: 5.2rem;
}

.jingTing-info {
  padding: .1rem .2rem;
  border: 1px solid #FFF;
  /*  &:before {
      content: '';
      display: block;
      position: relative;
      top: 50%;
      width: 100%;
      height: 1px;
    }*/
}

.yuDing {
  .flexbox();
  //.justify-content(space-between);
  .align-self(center);
  .align-items(center);
}

.card {
  box-shadow: none;
  //margin-left: 0;
  //margin-right: 0;
  font-size: .75rem;
  //&:first-child {
  //  margin-top: 0;
  //}
}

.card-content-cell {
  .flexbox();
  .justify-content(space-between);
  .align-self(center);
  .align-items(center);

  margin-top: .5rem;
  &:first-child {
    margin-top: 0;
  }
}

.train-list .card {

  .card-content {
    .flexbox();
    .justify-content(space-between);
    .align-self(center);
    .align-items(center);
    padding: .4rem .75rem;

    .card-content-inner {
      padding: 0;
      text-align: center;
    }
    .from, .to {
      //line-height: @bar-base-height;
    }
    .from-time {

    }
    .to-time {
      font-weight: normal;
    }
  }
  .card-footer {
    &:before {
      background: none;
    }
    border-top: @border-default-width dashed @border-default-color;
    //font-size: .6rem;
  }
}

.order {
  .item-subtitle {
    .flexbox();
    .justify-content(space-between);
    .align-self(center);
    .align-items(center);
  }
  .item-link ~ .flex-block {
    padding: .5rem .75rem;
  }
  li {
    border-top: 1px solid #EEE;
    &:first-child {
      border-top: 0;
    }
  }
}

.address-list-split {
  width: 3rem;
  border: @border-default;
}

.bar-header-secondary {
  z-index: 6000;
}

.searchbar {
  .flexbox();
  .align-self(center);
  .align-items(center);
  width: 100%;
  height: @bar-base-height;
  font-size: .75rem;
  .search-input {
    .flexbox();
    .align-self(center);
    .align-items(center);
    width: 100%;
    height: 1.45rem;

    border-radius: .4rem;
    background-color: #fff;
  }

  input[type='search'] {
    width: 100%;
    border: 0;

    background: 0;
  }
  .searchbar-cancel {
    display: none;

    margin-left: .4rem;
    width: 2.2rem;
    height: 1.45rem;
    line-height: 1.45rem;
    color: @color-text-secondary;
    -webkit-transition: all .3s;
    transition: all .3s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  &.active {
    .searchbar-cancel {
      display: block;
    }

  }
}

.bar-tab .tab-item.active,
.bar-tab .tab-item:active {
  color: @color-danger;
}

.buttons-tab .button.active {
  color: @color-danger;
  border-color: @color-danger;
}

.content-block-title {
  margin: .75rem;
}

.tab-item.text-danger {
  background-color: @color-danger;
  color: white;
}

.tab-item.text-primary {
  background-color: @color-primary;
  color: white;
}

.list-block.passenger {
  .item-title {
    .flexbox();
    .justify-content(space-between);
    .align-self(center);
    .align-items(center);

    width: 100%;
  }
}

//pay-result
.pay-result {
  &.weui_icon_success:before {
    font-size: 2.4rem;
  }
  &.weui_icon_warn:before {
    font-size: 2.4rem;
  }
}

.passenger_item {

  background-color: #FFF;
  .passenger_item_cell {
    .justify-content(space-between);
    padding: .5rem .75rem;
    border-bottom: @border-default;
  }
  .passenger_item_col,
  .passenger_item_cell {
    .flexbox();
    .align-self(center);
    .align-items(center);
  }
  .passenger_item_btn {
    //float: right;
  }
}

/*.list-block .item-input {
  .flexbox();
  .align-self(center);
  .align-items(center);
}*/
/*
.button {
  border-radius: 0;
}
*/

.bookHintInfo {
  line-height: 1.4rem;
  font-size: .75rem;
  .weui_icon_warn:before {
    font-size: inherit;
  }
}

.jt-info {
  display: block;
  //font-size: .75rem;
  border-radius: 4px;
  width: 2.75rem;
  margin: .1rem auto;
  position: relative;
  z-index: 10;
}

.jt-info:before {
  position: absolute;
  top: 0;
  left: 0;
  content: "\7ECF\505C\4FE1\606F";
  width: 200%;
  border-radius: 8px;
  box-sizing: border-box;

  -webkit-transform: scale(.5);
  transform: scale(.5);
  -webkit-transform-origin: left top;
  transform-origin: left top;

  border: 1px solid #fff;
  font-size: 1rem;
  height: 1.75rem;
  line-height: 1.75rem;
  background: @color-danger;
  z-index: 0;
}

.jt-info:after {
  width: 4rem;
  height: 1px;
  position: absolute;
  content: "";
  background: hsla(0, 0%, 100%, .5);
  left: 50%;
  top: .45rem;
  margin-left: -2rem;
  z-index: -1;
}

.jingtin-info {
  &.tlt {
    li {
      border-top: @border-default;
      border-bottom: @border-default;
    }
  }
  font-size: .65rem;
  li {
    display: table;
    padding: .2rem 0;
    width: 100%;

    > span {
      display: table-cell;
      text-align: center;
      width: 20%;
    }
  }
}

.jingtin-info-list {
  padding: 0 .4rem;
  li {
    border-top: @border-default;
    &:first-child {
      border-top: 0;
    }
    &:first-child,
    &:last-child {
      color: @color-danger;
    }
    > span:first-child {
      color: @color-text-gray;
    }
  ;
  }
}

.pay-order {
  margin-left: .05rem;
  margin-right: .05rem;
  padding: 0 .05rem;
  .card {
    background: @color-danger;
    color: #FFF;
  }
}

.books {
  &.on {
    flex-wrap: wrap;
    .tab-link {
      width: 25%;
    }
  }
  .tab-link {
    padding: .4rem 0;
    height: auto;
    line-height: 1.2rem;
    border: @border-default;
    &:first-child {
      border-left: 0;
    }
    &.active {
      &:before {
        content: '';
        border: 5px solid transparent;
        display: inline-block;
        position: absolute;
        right: 0;
        bottom: 0;
        border-right-color: @color-danger;
        border-bottom-color: @color-danger;
      }
    }
  }
}

//message
.message {
  padding: 30% 10%;
  text-align: center;
  color: #BBB;
  font-size: 1rem
}

//
.f06 {
  font-size: .6rem;
}

.f075 {
  font-size: .75rem;
}

.f09 {
  font-size: .9rem;
}

.f2 {
  font-size: 2rem;
}

.fwn {
  font-weight: normal;
}

.fwb {
  font-weight: bold;
}

.mt0 {
  margin-top: 0;
}

.mt05 {
  margin-top: .5rem;
}

.mb0 {
  margin-bottom: 0;
}

.mb05 {
  margin-bottom: .5rem;
}

.mt03 {
  margin-top: .3rem;
}

.mb075 {
  margin-bottom: .75rem;
}

.mb2_2 {
  margin-bottom: @bar-base-height;
}

.mt075 {
  margin-top: .75rem;
}

.mt2 {
  margin-top: 2rem;
}

.pl05 {
  padding-left: .5rem;
}

.pr05 {
  padding-right: .5rem;
}

.pr075 {
  padding-right: .75rem;
}

.pl075 {
  padding-left: .75rem;
}

.pt {
  padding-top: .75rem;
}

.pb {
  padding-bottom: .75rem;
}

.button-item {
  width: 100%;
  .button {
    height: 2rem;
    line-height: 2rem;

  }
}

.border-bottom {
  border-bottom: @border-default;
}

//bar bar-nav text-danger
.bar.bar-nav.thame-danger {
  color: #FFF;
  background-color: @color-danger;
  .title {
    color: inherit;
  }
}

.flex-block {
  .flexbox();
  .justify-content(space-between);
  .align-self(center);
  .align-items(center);
}

/*
.flex-inline {
  .flexbox();
  .justify-content(space-between);
  .align-self(center);
  .align-items(center);
}
*/

.trainBlockH .list-block ul{
  background: none;
}
.list-block ul:before,.list-block ul:after{
  height: 0;
}

//公共的字体颜色
.text-primary {
  color: @color-primary
}

.text-danger {
  color: @color-danger
}

.text-warning {
  color: @color-warning
}

.text-success {
  color: @color-success
}

.text-orange {
  color: @color-orange
}

.text-disabled {
  color: @color-text-gray
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}